package com.ruoyi.websocket.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通知信息框对象 wb_notice_message
 *
 * @author cpw
 * @date 2025-06-11
 */
public class WbNoticeMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 通知标题 */
    @Excel(name = "通知标题")
    private String title;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String content;

    /** 消息类型（如：系统、任务、流程等） */
    @Excel(name = "消息类型", readConverterExp = "如=：系统、任务、流程等")
    private String type;

    /** 发送人ID（系统发可为 0） */
    @Excel(name = "发送人ID", readConverterExp = "系=统发可为,0=")
    private Long senderId;

    /** 发送人名称 */
    @Excel(name = "发送人名称")
    private String senderName;

    /** 接收人ID */
    @Excel(name = "接收人ID")
    private Long receiverId;

    /** 接收人昵称 */
    @Excel(name = "接收人昵称")
    private String receiverName;

    /** 是否已读（0-未读，1-已读） */
    @Excel(name = "是否已读", readConverterExp = "0=-未读，1-已读")
    private Integer isRead;

    /** 阅读时间（已读时记录） */
    @Excel(name = "阅读时间", readConverterExp = "已=读时记录")
    private Date readTime;

    /** 删除标志（0-正常，1-删除） */
    private Integer delFlag;

    /** 优先级（0-低，1-中，2-高） */
    @Excel(name = "优先级", readConverterExp = "0=-低，1-中，2-高")
    private Long priority;

    /** 点击通知跳转的链接地址 */
    @Excel(name = "点击通知跳转的链接地址")
    private String targetUrl;

    /** 业务类型（如合同、审批、公告等） */
    @Excel(name = "业务类型", readConverterExp = "如=合同、审批、公告等")
    private String bizType;

    /** 业务ID */
    @Excel(name = "业务ID")
    private String bizId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }

    public Long getSenderId() {
        return senderId;
    }

    public void setSenderId(Long senderId) {
        this.senderId = senderId;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public Long getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    public void setReceiverName(String receiverName)
    {
        this.receiverName = receiverName;
    }

    public String getReceiverName()
    {
        return receiverName;
    }

    public void setIsRead(Integer isRead)
    {
        this.isRead = isRead;
    }

    public Integer getIsRead()
    {
        return isRead;
    }

    public void setReadTime(Date readTime)
    {
        this.readTime = readTime;
    }

    public Date getReadTime()
    {
        return readTime;
    }

    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    public void setPriority(Long priority)
    {
        this.priority = priority;
    }

    public Long getPriority()
    {
        return priority;
    }

    public void setTargetUrl(String targetUrl)
    {
        this.targetUrl = targetUrl;
    }

    public String getTargetUrl()
    {
        return targetUrl;
    }

    public void setBizType(String bizType)
    {
        this.bizType = bizType;
    }

    public String getBizType()
    {
        return bizType;
    }

    public void setBizId(String bizId)
    {
        this.bizId = bizId;
    }

    public String getBizId()
    {
        return bizId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("content", getContent())
                .append("type", getType())
                .append("senderId", getSenderId())
                .append("senderName", getSenderName())
                .append("receiverId", getReceiverId())
                .append("receiverName", getReceiverName())
                .append("isRead", getIsRead())
                .append("readTime", getReadTime())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .append("priority", getPriority())
                .append("targetUrl", getTargetUrl())
                .append("bizType", getBizType())
                .append("bizId", getBizId())
                .toString();
    }
}
